'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

 
  // 李欣
  router.post('/userlogin', controller.lx.home.userlogin);
  router.post('/userregister', controller.lx.home.userregister);
  router.post('/adminlogin', controller.lx.home.adminlogin);
  router.post('/doctorlogin', controller.lx.home.doctorlogin);
  router.get('/getverif', controller.lx.home.getverif);
  // router.get('/getUserInfo', controller.home.getUserInfo);




 

  // 李福龙
  router.get('/chat', controller.lfl.home.chat);
  router.get('/order', controller.lfl.home.order);
  router.get('/getOnline', controller.lfl.home.getOnline);
  router.get('/Offline', controller.lfl.home.Offline);
  router.get('/goOnline', controller.lfl.home.goOnline);



  // 孙章聪
  router.get('/search',controller.szc.home.search)

  // zh

  router.get('/test', controller.zhanghan.test);
  router.get('/test_sql', controller.zhanghan.test_sql);
  router.get('/searcher', controller.zhanghan.searcher);
  router.get('/get_doctor', controller.zhanghan.get_doctor)



  //tq
  // //获取ym的信息
  router.get('/homedata', controller.tq.home.homedata)
  router.get('/homedata1', controller.tq.home.homedata1)
  //获取详情作品的信息
  router.get('/detail', controller.tq.home.detail)
  router.get('/report', controller.tq.home.report)
  //自己可以评论
  router.get('/setreport', controller.tq.home.setreport)

  //root管理用户
  router.get('/userfrom', controller.tq.home.userfrom)
  //删除用户
  router.get('/deluser', controller.tq.root.deluser)
  //修改用户
  router.get('/update1', controller.tq.root.update1)
  //添加用户
  router.get('/xjuser', controller.tq.root.xjuser)


  // router.get('/test', controller.xyl.home.index);
  //许玉林

  router.get('/docin', controller.xyl.home.docin);
  router.get('/getuserid', controller.xyl.home.getuserid);
  router.post('/productud', controller.xyl.home.productud);
  router.get('/getprob', controller.xyl.home.getprob);
  router.get('/isgz', controller.xyl.home.isgz);
  // router.get('/updataisgz', controller.xyl.home.updataisgz);
  router.get('/setud', controller.xyl.home.setud);
  router.get('/deleteud', controller.xyl.home.deleteud);
  router.get('/getproblen', controller.xyl.home.getproblen);
  router.get('/creatcomment', controller.xyl.home.creatcomment);
  router.get('/getcomment', controller.xyl.home.getcomment);
  router.get('/getcommentlen', controller.xyl.home.getcommentlen);
};
